.class public Lcom/donson/momark/view/view/AdView;
.super Landroid/widget/RelativeLayout;


# static fields
.field private static c:Z

.field private static g:Ljava/lang/String;

.field private static h:Lcom/donson/momark/util/b/a;

.field private static j:Lcom/donson/momark/a/r;

.field private static k:Z

.field private static w:Lcom/donson/momark/a/r;


# instance fields
.field a:Landroid/app/KeyguardManager;

.field private b:Lcom/donson/momark/view/view/r;

.field public context:Landroid/content/Context;

.field private d:Lcom/donson/momark/view/e;

.field private e:Ljava/lang/String;

.field private f:Lcom/donson/momark/view/view/e;

.field public failHandler:Landroid/os/Handler;

.field private i:Lcom/donson/momark/a/u;

.field private l:Lcom/donson/momark/util/AdViewListener;

.field public refreshHandler:Landroid/os/Handler;

.field public removeHandler:Landroid/os/Handler;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    invoke-static {}, Lcom/donson/momark/util/b/a;->a()Lcom/donson/momark/util/b/a;

    move-result-object v0

    sput-object v0, Lcom/donson/momark/view/view/AdView;->h:Lcom/donson/momark/util/b/a;

    const/4 v0, 0x0

    sput-boolean v0, Lcom/donson/momark/view/view/AdView;->c:Z

    const/4 v0, 0x1

    sput-boolean v0, Lcom/donson/momark/view/view/AdView;->k:Z

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v0, Lcom/donson/momark/view/view/r;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/r;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->b:Lcom/donson/momark/view/view/r;

    new-instance v0, Lcom/donson/momark/view/view/e;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/e;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->f:Lcom/donson/momark/view/view/e;

    new-instance v0, Lcom/donson/momark/a/u;

    invoke-direct {v0}, Lcom/donson/momark/a/u;-><init>()V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    new-instance v0, Lcom/donson/momark/view/view/a;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/a;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->refreshHandler:Landroid/os/Handler;

    new-instance v0, Lcom/donson/momark/view/view/q;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/q;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->removeHandler:Landroid/os/Handler;

    new-instance v0, Lcom/donson/momark/view/view/w;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/w;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->failHandler:Landroid/os/Handler;

    iput-object p1, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    const-string v0, ""

    sput-object v0, Lcom/donson/momark/util/e;->t:Ljava/lang/String;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "."

    invoke-virtual {v1, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->e:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->startAd()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 3

    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    new-instance v0, Lcom/donson/momark/view/view/r;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/r;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->b:Lcom/donson/momark/view/view/r;

    new-instance v0, Lcom/donson/momark/view/view/e;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/e;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->f:Lcom/donson/momark/view/view/e;

    new-instance v0, Lcom/donson/momark/a/u;

    invoke-direct {v0}, Lcom/donson/momark/a/u;-><init>()V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    new-instance v0, Lcom/donson/momark/view/view/a;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/a;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->refreshHandler:Landroid/os/Handler;

    new-instance v0, Lcom/donson/momark/view/view/q;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/q;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->removeHandler:Landroid/os/Handler;

    new-instance v0, Lcom/donson/momark/view/view/w;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/w;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->failHandler:Landroid/os/Handler;

    iput-object p1, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    const-string v0, ""

    sput-object v0, Lcom/donson/momark/util/e;->t:Ljava/lang/String;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "."

    invoke-virtual {v1, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->e:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->startAd()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 3

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    new-instance v0, Lcom/donson/momark/view/view/r;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/r;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->b:Lcom/donson/momark/view/view/r;

    new-instance v0, Lcom/donson/momark/view/view/e;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/e;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->f:Lcom/donson/momark/view/view/e;

    new-instance v0, Lcom/donson/momark/a/u;

    invoke-direct {v0}, Lcom/donson/momark/a/u;-><init>()V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    new-instance v0, Lcom/donson/momark/view/view/a;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/a;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->refreshHandler:Landroid/os/Handler;

    new-instance v0, Lcom/donson/momark/view/view/q;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/q;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->removeHandler:Landroid/os/Handler;

    new-instance v0, Lcom/donson/momark/view/view/w;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/w;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->failHandler:Landroid/os/Handler;

    iput-object p1, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "."

    invoke-virtual {v1, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->e:Ljava/lang/String;

    const-string v0, ""

    sput-object v0, Lcom/donson/momark/util/e;->t:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->startAd()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v0, Lcom/donson/momark/view/view/r;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/r;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->b:Lcom/donson/momark/view/view/r;

    new-instance v0, Lcom/donson/momark/view/view/e;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/e;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->f:Lcom/donson/momark/view/view/e;

    new-instance v0, Lcom/donson/momark/a/u;

    invoke-direct {v0}, Lcom/donson/momark/a/u;-><init>()V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    new-instance v0, Lcom/donson/momark/view/view/a;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/a;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->refreshHandler:Landroid/os/Handler;

    new-instance v0, Lcom/donson/momark/view/view/q;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/q;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->removeHandler:Landroid/os/Handler;

    new-instance v0, Lcom/donson/momark/view/view/w;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/w;-><init>(Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->failHandler:Landroid/os/Handler;

    iput-object p1, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    sput-object p2, Lcom/donson/momark/util/e;->t:Ljava/lang/String;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "."

    invoke-virtual {v1, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->e:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->startAd()V

    return-void
.end method

.method static synthetic a()Lcom/donson/momark/a/r;
    .locals 1

    sget-object v0, Lcom/donson/momark/view/view/AdView;->w:Lcom/donson/momark/a/r;

    return-object v0
.end method

.method static synthetic a(Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/a/u;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    return-object v0
.end method

.method static synthetic d()Lcom/donson/momark/a/r;
    .locals 1

    sget-object v0, Lcom/donson/momark/view/view/AdView;->j:Lcom/donson/momark/a/r;

    return-object v0
.end method

.method static synthetic d(Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/view/e;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->d:Lcom/donson/momark/view/e;

    return-object v0
.end method

.method static synthetic e()Lcom/donson/momark/util/b/a;
    .locals 1

    sget-object v0, Lcom/donson/momark/view/view/AdView;->h:Lcom/donson/momark/util/b/a;

    return-object v0
.end method

.method static synthetic e(Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/view/view/e;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->f:Lcom/donson/momark/view/view/e;

    return-object v0
.end method


# virtual methods
.method public AdViewSwitchedWakeUp()V
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->l:Lcom/donson/momark/util/AdViewListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->l:Lcom/donson/momark/util/AdViewListener;

    invoke-interface {v0, p0}, Lcom/donson/momark/util/AdViewListener;->onAdViewSwitchedAd(Lcom/donson/momark/view/view/AdView;)V

    :cond_0
    return-void
.end method

.method public ConnectFailedWakeUp()V
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->l:Lcom/donson/momark/util/AdViewListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->l:Lcom/donson/momark/util/AdViewListener;

    invoke-interface {v0, p0}, Lcom/donson/momark/util/AdViewListener;->onConnectFailed(Lcom/donson/momark/view/view/AdView;)V

    :cond_0
    return-void
.end method

.method public addView(Landroid/view/View;)V
    .locals 0

    invoke-super {p0, p1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-void
.end method

.method public getAdHeight()I
    .locals 1

    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->getHeight()I

    move-result v0

    return v0
.end method

.method public getAdWidth()I
    .locals 1

    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->getWidth()I

    move-result v0

    return v0
.end method

.method public init()V
    .locals 4

    const/16 v3, 0x32

    const/4 v2, -0x1

    invoke-static {}, Lcom/donson/momark/a/r;->a()Lcom/donson/momark/a/r;

    move-result-object v0

    sput-object v0, Lcom/donson/momark/view/view/AdView;->j:Lcom/donson/momark/a/r;

    const/4 v0, 0x0

    invoke-static {v0}, Lcom/donson/momark/util/t;->a(Z)V

    new-instance v0, Lcom/donson/momark/view/e;

    iget-object v1, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-direct {v0, v1, p0}, Lcom/donson/momark/view/e;-><init>(Landroid/content/Context;Lcom/donson/momark/view/view/AdView;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->d:Lcom/donson/momark/view/e;

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v1, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-static {v1, v3}, Lcom/donson/momark/util/u;->a(Landroid/content/Context;I)I

    move-result v1

    invoke-direct {v0, v2, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p0, v0}, Lcom/donson/momark/view/view/AdView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-static {v0, v3}, Lcom/donson/momark/util/u;->a(Landroid/content/Context;I)I

    move-result v0

    invoke-direct {v1, v2, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->d:Lcom/donson/momark/view/e;

    invoke-virtual {v0}, Lcom/donson/momark/view/e;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->d:Lcom/donson/momark/view/e;

    invoke-virtual {v0}, Lcom/donson/momark/view/e;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/donson/momark/view/view/AdView;->d:Lcom/donson/momark/view/e;

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->removeView(Landroid/view/View;)V

    :cond_0
    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    const-string v2, "keyguard"

    invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/KeyguardManager;

    iput-object v0, p0, Lcom/donson/momark/view/view/AdView;->a:Landroid/app/KeyguardManager;

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->d:Lcom/donson/momark/view/e;

    invoke-virtual {p0, v0, v1}, Lcom/donson/momark/view/view/AdView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method public onWindowFocusChanged(Z)V
    .locals 2

    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->hasWindowFocus()Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/donson/momark/view/view/AdView;->h:Lcom/donson/momark/util/b/a;

    iget-object v1, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-virtual {v0, v1, p0}, Lcom/donson/momark/util/b/a;->a(Landroid/content/Context;Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/util/b/a;

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/donson/momark/view/view/AdView;->refreshView(I)V

    :cond_0
    return-void
.end method

.method public refreshView(I)V
    .locals 2

    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    iput p1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/donson/momark/view/view/AdView;->refreshHandler:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method

.method public removeView()V
    .locals 2

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->removeHandler:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    return-void
.end method

.method public sendCommand()Lcom/donson/momark/a/r;
    .locals 6

    const/4 v5, 0x0

    sget-object v0, Lcom/donson/momark/view/view/AdView;->w:Lcom/donson/momark/a/r;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    sget-object v1, Lcom/donson/momark/util/e;->h:Ljava/lang/String;

    iget-object v2, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    sget-object v3, Lcom/donson/momark/view/view/AdView;->j:Lcom/donson/momark/a/r;

    invoke-static {v2, v3}, Lcom/donson/momark/a/w;->a(Landroid/content/Context;Lcom/donson/momark/a/r;)Ljava/lang/String;

    move-result-object v2

    sget-object v3, Lcom/donson/momark/view/view/AdView;->j:Lcom/donson/momark/a/r;

    iget-object v4, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    invoke-static {v0, v1, v2, v3, v4}, Lcom/donson/momark/b/w;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/donson/momark/a/r;Lcom/donson/momark/a/u;)V

    :goto_0
    sget-object v0, Lcom/donson/momark/view/view/AdView;->j:Lcom/donson/momark/a/r;

    iget-object v0, v0, Lcom/donson/momark/a/r;->h:Lcom/donson/momark/a/a/w;

    invoke-virtual {v0, v5}, Lcom/donson/momark/a/a/w;->a(I)V

    sget-object v0, Lcom/donson/momark/view/view/AdView;->j:Lcom/donson/momark/a/r;

    iget-object v0, v0, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v0}, Lcom/donson/momark/a/a/a;->d()I

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    invoke-virtual {v0}, Lcom/donson/momark/a/u;->d()I

    move-result v0

    if-lez v0, :cond_1

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    iget-object v1, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/donson/momark/a/u;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    invoke-virtual {v0}, Lcom/donson/momark/a/u;->a()I

    :goto_1
    sget-object v0, Lcom/donson/momark/view/view/AdView;->j:Lcom/donson/momark/a/r;

    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    sget-object v1, Lcom/donson/momark/util/e;->h:Ljava/lang/String;

    iget-object v2, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    sget-object v3, Lcom/donson/momark/view/view/AdView;->w:Lcom/donson/momark/a/r;

    invoke-static {v2, v3}, Lcom/donson/momark/a/w;->a(Landroid/content/Context;Lcom/donson/momark/a/r;)Ljava/lang/String;

    move-result-object v2

    sget-object v3, Lcom/donson/momark/view/view/AdView;->j:Lcom/donson/momark/a/r;

    iget-object v4, p0, Lcom/donson/momark/view/view/AdView;->i:Lcom/donson/momark/a/u;

    invoke-static {v0, v1, v2, v3, v4}, Lcom/donson/momark/b/w;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/donson/momark/a/r;Lcom/donson/momark/a/u;)V

    goto :goto_0

    :cond_1
    sget-object v0, Lcom/donson/momark/view/view/AdView;->j:Lcom/donson/momark/a/r;

    invoke-virtual {v0}, Lcom/donson/momark/a/r;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/donson/momark/a/r;

    sput-object v0, Lcom/donson/momark/view/view/AdView;->w:Lcom/donson/momark/a/r;

    const/4 v0, 0x1

    sput-boolean v0, Lcom/donson/momark/view/view/AdView;->c:Z

    invoke-virtual {p0, v5}, Lcom/donson/momark/view/view/AdView;->refreshView(I)V

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->failHandler:Landroid/os/Handler;

    invoke-virtual {v0, v5}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    const-string v0, "donson.momark"

    const-string v1, " 40011:advertise switch error."

    invoke-static {v0, v1}, Lcom/donson/momark/util/t;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1
.end method

.method public setAdViewListener()V
    .locals 0

    return-void
.end method

.method public setAdViewListener(Lcom/donson/momark/util/AdViewListener;)V
    .locals 0

    iput-object p1, p0, Lcom/donson/momark/view/view/AdView;->l:Lcom/donson/momark/util/AdViewListener;

    return-void
.end method

.method public startAd()V
    .locals 2

    sget-object v0, Lcom/donson/momark/view/view/AdView;->h:Lcom/donson/momark/util/b/a;

    iget-object v1, p0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-virtual {v0, v1, p0}, Lcom/donson/momark/util/b/a;->a(Landroid/content/Context;Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/util/b/a;

    sget-object v0, Lcom/donson/momark/view/view/AdView;->g:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->e:Ljava/lang/String;

    sget-object v1, Lcom/donson/momark/view/view/AdView;->g:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->init()V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/donson/momark/view/view/AdView;->refreshView(I)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->init()V

    sget-boolean v0, Lcom/donson/momark/view/view/AdView;->k:Z

    if-eqz v0, :cond_2

    const/4 v0, 0x0

    sput-boolean v0, Lcom/donson/momark/view/view/AdView;->k:Z

    invoke-virtual {p0}, Lcom/donson/momark/view/view/AdView;->startInitThread()V

    :cond_1
    :goto_1
    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->e:Ljava/lang/String;

    sput-object v0, Lcom/donson/momark/view/view/AdView;->g:Ljava/lang/String;

    goto :goto_0

    :cond_2
    sget-boolean v0, Lcom/donson/momark/view/view/AdView;->c:Z

    if-eqz v0, :cond_1

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/donson/momark/view/view/AdView;->refreshView(I)V

    goto :goto_1
.end method

.method public startInitThread()V
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->b:Lcom/donson/momark/view/view/r;

    invoke-virtual {v0}, Lcom/donson/momark/view/view/r;->isAlive()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/AdView;->b:Lcom/donson/momark/view/view/r;

    invoke-virtual {v0}, Lcom/donson/momark/view/view/r;->start()V

    :cond_0
    return-void
.end method
